ááááááááááSaveRS
ááááááááááMethod
ááááááááááMemberáof áRSConvert.DBF

áDescriptioná
Saves the recordset as a DBF file
áSyntaxá
DBF.SaveRS (FileName as String, RS as Variant, [FieldsFormat as String = From recordset])
á
Where Type Optional Default Description
áFileNameááStringáááááDBF file nameá
áRSááVariantáááááADO or DAO recordset to saveá
áFieldsFormatááStringááyesááFrom recordsetááFormat of field as array (see remarks)á
áRemarksá
Parameter FieldsFormat :
Array("Name1", "Type1", Size1, Decimal1,"Name2", "Type2", Size2, Decimal2 ...)
where
Name is name of the field
Type is DBF datatype, one of :
áC character
áN Numeric
áL Logical
áD Date
Size is field size for character and numeric fields
Decimal is number of decimal places for numeric fields
áExamplesá
Save table from ADOSamplesá
  'Create RecordSet and DBF objects
  Set ADORS = CreateObject("ADODB.Recordset")
  Set DBF = CreateObject("RSConvert.DBF")
  
  'Open table
  ADORS.Open "Customers", "DSN=ADOSamples"
  'Save table to the disk
  DBF.SaveRS "c:\dbfexport\Custo", ADORS
  'Close recordset
  ADORS.Close
  
  ADORS.Open "Products", "DSN=ADOSamples"
  DBF.SaveRS "c:\dbfexport\Products", ADORS
  ADORS.Close
áMethods of DBFá
GetFile, SaveRS
áProperties of DBFá
Compress, CurrencyDecimal, CurrencyWidth, DoubleDecimal, DoubleWidth, IntegerWidth, LongVarCharWidth, RowCount, SingleDecimal, SingleWidth, TempDirectory

⌐ 1996 û 1998 PSTRUH Software, help@pstruh.cz